 {
        
        var o = require("../UIManager/UISoundManager.js");
        cc.Class({
            extends: cc.Component,
            properties: {
                spHead: {
                    default: null,
                    type: cc.Sprite
                },
                labNick: {
                    default: null,
                    type: cc.Label
                },
                labCoin: {
                    default: null,
                    type: cc.Label
                },
                labQuan: {
                    default: null,
                    type: cc.Label
                },
                labDiamond: {
                    default: null,
                    type: cc.Label
                },
                newMsgTip: {
                    default: null,
                    type: cc.Node
                },
                xueLiuNum: {
                    default: null,
                    type: cc.Label
                },
                xueZhanNum: {
                    default: null,
                    type: cc.Label
                },
                errenNum: {
                    default: null,
                    type: cc.Label
                },
                redpacketBub: {
                    default: null,
                    type: cc.Node
                },
                jiSuNum: {
                    default: null,
                    type: cc.Label
                },
                nodeWeChatUI: {
                    default: null,
                    type: cc.Node
                },
                left: {
                    default: null,
                    type: cc.Node
                },
                oldRight: {
                    default: null,
                    type: cc.Node
                },
                bottomUILayout: {
                    default: null,
                    type: cc.Layout
                },
                nodeRole: {
                    default: null,
                    type: cc.Node
                },
                nodeBtnGuid: {
                    default: null,
                    type: cc.Node
                },
                nodeFirstRecharge: {
                    default: null,
                    type: cc.Node
                },
                btnRedPacket: {
                    default: null,
                    type: cc.Node
                },
                adNodes: [cc.Node],
                nodeAdCrossList: cc.Node,
                nodeAdsLayout: cc.Node,
                nodeGameClub: cc.Node,
                nodebtnShareQR: {
                    default: null,
                    type: cc.Node
                },
                panelRightList: {
                    default: null,
                    type: cc.Node
                }
            },
            onLoad: function () {
                Global.SetGameId(Global.config.GAMEID_NORMAL), Global.notificationCenter.on(Global.eventName.MSG_ENTERGAME_AFTER_SETUSERINFO, this.onAfterSetUserInfoOnce.bind(this), this),
                    Global.notificationCenter.on(Global.eventName.UPDATE_ROOMINFO_SUCCESSED, this.updateRooms.bind(this), this),
                    Global.notificationCenter.on(Global.eventName.CMD_SEVENDAYS_CHECKIN, this.operateSevenDays_CheckIn.bind(this), this),
                    Global.notificationCenter.on(Global.eventName.MSG_GET_SHAREINFO, this.operateShareInfo.bind(this), this),
                    Global.notificationCenter.on(Global.eventName.GAME_TASKS, this.onGameTasks.bind(this), this),
                    Global.notificationCenter.on(Global.eventName.MSG_SHARE_FRIEND_ENTER, this.showNewHelpMsg.bind(this), this),
                    Global.notificationCenter.on(Global.eventName.MSG_REWARD_INFO, this.showGuide.bind(this), this),
                    Global.notificationCenter.on(Global.eventName.MSH_SHOWFIRSTRECHARGE, this.onShowFirstRecharge.bind(this), this),
                    Global.notificationCenter.on(Global.eventName.MSG_SET_UNDO_RECEIVE, this.setUnReceive.bind(this), this),
                    Global.notificationCenter.on(Global.eventName.LOAD_GAME_RESOURCE_SUCCESS, this.loadGameResourceSuccess.bind(this), this),
                    Global.notificationCenter.on(Global.eventName.MSG_REFRESH_HEAD_INFO, this.setMyUserProfile.bind(this), this),
                    tywx.NotificationCenter.listen(tywx.EventType.GET_ADMANAGER_ICON_INFO_SUCCESS, this.showAd.bind(this), this),
                    this._isClickEnterRoom = {}, this._loadCallBack = null, this.nodeInviteFri = Global.utils.searchNode(this.node, "nodeInviteFri");
            },
            start: function () {
                this.initView();
                var e = Global.configCdn.getUISwitchConf();
                e && 1 == e.forceUpdate && (this.checkForUpdate(), console.log("checkForUpdate!!")),
                    this.scheduleOnce(function () {
                        Global.spriteAtlas.loadGameSpriteAtlas();
                    }, .4), Global.netWork && Global.netWork.isConneted() && this._requestThings();
            },
            _shakeAction: function () {
                var e = new cc.Sequence(cc.rotateTo(.2, 5), cc.rotateTo(.2, 0), cc.rotateTo(.2, -5), cc.rotateTo(.2, 0), cc.rotateTo(.2, 5), cc.rotateTo(.2, 0), cc.rotateTo(.2, -5), cc.rotateTo(.8, 0).easing(cc.easeBackOut(3)), cc.delayTime(.5));
                return new cc.Repeat(e, Global.utils.randomInt(1, 2));
            },
            initView: function () {
                if (cc.sys.platform == cc.sys.WECHAT_GAME) {
                    Global.utils.showGameClubBtn(!0, this.nodeGameClub);
                    this.setNodePos(!0), this.nodeWeChatUI.active = !0;
                    var e = Global.utils.searchComp(this.node, "shopLayout", cc.Widget);
                    if (e) {
                        var t = Global.utils.getOffsetByPhoneType();
                        e.right = t;
                    }
                    if (this.showDeskGuidBtn(), this.hideBuyForApple(), this.showAd(), this.panelRightList) {
                        var n = this.panelRightList.children.length - 1;
                        this.schedule(function () {
                            this.panelRightList.children[Global.utils.randomInt(0, n)].runAction(this._shakeAction());
                        }, Global.utils.randomInt(6, 9));
                    }
                } else {
                    this.setNodePos(!1), this.nodeWeChatUI.active = !1, window.onresize = function () {
                        for (var e = SceneHelper.getCurScene().getComponentsInChildren(cc.Widget), t = 0; t < e.length; t++) e[t].updateAlignment();
                    }, this.nodeAdCrossList && (this.nodeAdCrossList.active = !1);
                }
                var o = cc.winSize.width, i = 70, a = 40;
                o >= 1200 && o < 1280 ? (i = 70, a = 40) : o >= 1100 && o < 1200 ? (i = 70, a = 40) : o >= 1e3 && o < 1100 ? (i = 70,
                    a = 20) : o >= 900 && o < 1e3 && (i = 70, a = 10), Global.configCdn.getUISwitch() ? this.btnRedPacket.active = !0 : this.btnRedPacket.active = !1,
                    this.bottomUILayout.spacingX = i, this.bottomUILayout.paddingRight = a, this.showHadDiamond();
            },
            showAd: function () {
                if (Global.configCdn.getUISwitch()) {
                    if (this.nodeAdsLayout) {
                        this.nodeAdsLayout.active = !0;
                        for (var e = 0; e < this.nodeAdsLayout.children.length; e++) {
                            var t = this.nodeAdsLayout.children[e];
                            t && (t.scale = Global.config.nodeAdCrossScale);
                        }
                    }
                    var n = tywx.AdManager.getAdNodeList();
                    console.log("showAd list:", n);
                    for (var o = 0; o < this.adNodes.length; o++) {
                        var i = this.adNodes[o], a = i.parent.convertToWorldSpaceAR(i.getPosition());
                        tywx.AdManager.showTargetAdByIndex(a, null, o), tywx.AdManager.currentAdInfo || (i.active = !1);
                    }
                    this.nodeAdCrossList && (this.nodeAdCrossList.active = !0, this.schedule(function () {
                        this.nodeAdCrossList.runAction(this._shakeAction());
                    }, Global.utils.randomInt(6, 8)));
                } else this.nodeAdsLayout && (this.nodeAdsLayout.active = !1);
            },
            onAfterSetUserInfoOnce: function () {
                this._requestThings();
            },
            _requestThings: function () {
                if (!this._requestOnce) {
                    this._requestOnce = !0, console.log("_requestThings "), this.setMyUserProfile(),
                        this.getTaskData();
                    var e = Global.config.GAMEID_NORMAL;
                    Global.roomInfoModel && 0 == Global.roomInfoModel.hasXueLiuRooms() && Global.msgHandler.requestRoomList(Global.config.playModel.XUELIU, e),
                    Global.roomInfoModel && 0 == Global.roomInfoModel.hasXueZhanRooms() && Global.msgHandler.requestRoomList(Global.config.playModel.XUEZHAN, e),
                    Global.roomInfoModel && 0 == Global.roomInfoModel.hasErrenRooms() && Global.msgHandler.requestRoomList(Global.config.playModel.ERREN, Global.config.GAMEID_ERREN),
                    Global.roomInfoModel && 0 == Global.roomInfoModel.hasErrenQuickRooms() && Global.msgHandler.requestRoomList(Global.config.playModel.ERRENQUICK, Global.config.GAMEID_ERRENQUICK);
                    Global.msgHandler.requestRewardData("query"), this.initPeopleNum();
                }
            },
            getTaskData: function () {
                Global.msgHandler.requestTaskData();
            },
            showGuide: function (e) {
                if ("recieve" == e.action) {
                    if (this._forceUnReceive) return;
                    if (e.tip) Global.utils.showNodeCommon(e.tip, 2); else {
                        var t = function () {
                            console.log("领取成功回调。。。。。");
                        }.bind(this);
                        e = {
                            reward: e.deltaChip,
                            name: "金币",
                            type: "freegive"
                        };
                        Global.UIPopupManager.addPopup("PopupPanel/Panel_shareGroup_Reward", function (n) {
                            n.getComponent("shareGroup_RewardPanel").setData(e, t), Global.spriteAtlas.setSpriteFrame(n.getComponent("shareGroup_RewardPanel").rewardSp, "Texture/Rewards", "WP_3");
                        });
                    }
                } else if ("query" == e.action) {
                    if (console.log("showGuide query", e), Global.userProfile.setAcceptFirstGameReward(!e.acceptFirstGameReward),
                        Global.userProfile.getAcceptFirstGameReward()) {
                        Global.userProfile.getCanDailyFreeGive() || Global.msgHandler.requestSevenDays_checkin("get");
                    } else {
                        Global.notificationCenter.emit(Global.eventName.MSG_SHOW_NPC_BUBBLE, {
                            id: 8,
                            isTop: !0
                        });
                        try {
                            Global.UIPopupManager.addPopup("prefabs/guid/RookieManGuidance", function (e) {
                            }),
                            o && o.playReward();
                        } catch (e) {
                            cc.error("弹出新手引导的界面cuowo");
                        }
                    }
                }
            },
            closeFirstRewardAnim: function () {
                console.log("closeFirstRewardAnim");
            },
            setUnReceive: function (e) {
                this._forceUnReceive = e;
            },
            onGameTasks: function (e) {
                for (var t = 0; t < e.tasks.length; t++) {
                    var n = e.tasks[t];
                    if ("enter_game" == n.action) {
                        var o = n.params.enter_param.pluginParams.roomId;
                        if (o < 0) {
                            cc.error("homeController onGameTasks roomId<0");
                            var i = {
                                text: "金币不足，快去分享获取金币吧！",
                                cancelSp: Global.spriteAtlas.getGoInviteSpf(),
                                cancelText: "去邀请",
                                cancelCallback: function () {
                                    Global.UIPopupManager.addPopup("PopupPanel/Panel_InviteFri", function (e) {
                                    });
                                },
                                closeCallback: function () {
                                    console.log("closeCallback");
                                },
                                needConfirmBtn: !1
                            };
                            return void Global.UIPopupManager.alert(i);
                        }
                        Global.roomInfoModel.setRoomId(o);
                        var a = Global.roomInfoModel.getPlayModel();
                        Global.msgHandler.requestQuickStart(a, o);
                    }
                }
            },
            hideBuyForApple: function () {
                if (tywx.UserInfo.isiPhone) {
                    var e = Global.utils.searchNode(this.node, "bntShop");
                    e && (e.active = !1);
                    var t = Global.utils.searchNode(this.node, "btnGoldCoin");
                    if (t) {
                        var n = Global.utils.searchNode(t, "addBtn");
                        n && (n.active = !1);
                    }
                    if (t = Global.utils.searchNode(this.node, "btnDiamond")) {
                        var o = Global.utils.searchNode(t, "addBtn");
                        o && (o.active = !1);
                    }
                }
            },
            showDeskGuidBtn: function () {
                if (cc.sys.platform == cc.sys.WECHAT_GAME) {
                    var e = cc.sys.localStorage.getItem("count");
                    tywx.SystemInfo.wxSystemInfo && tywx.SystemInfo.wxSystemInfo.system.indexOf("Android") >= 0 && !e && (this.nodeBtnGuid.active = !0);
                }
            },
            setNodePos: function (e) {
                if (e) {
                    if (2 == tywx.UserInfo.systemType && (this.left.getComponent(cc.Widget).left = 140,
                        this.left.getComponent(cc.Widget).updateAlignment()), this.nodeAdsLayout) {
                        var t = this.nodeAdsLayout.getComponent(cc.Widget);
                        t && (t.right = 607, t.updateAlignment());
                    }
                } else this.left.getComponent(cc.Widget).left = 69, this.oldRight.getComponent(cc.Widget).right = 30;
            },
            initPeopleNum: function () {
                this.xueLiuNum.string = Global.roomInfoModel.getRoomOnlineNum(Global.config.playModel.XUELIU) || Global.utils.randomInt(4e3, 5e3) + "人",
                    this.xueZhanNum.string = Global.roomInfoModel.getRoomOnlineNum(Global.config.playModel.XUEZHAN) || Global.utils.randomInt(2e3, 3e3) + "人",
                    this.errenNum.string = Global.roomInfoModel.getRoomOnlineNum(Global.config.playModel.ERREN) || Global.utils.randomInt(4e3, 5e3) + "人",
                    this.jiSuNum.string = Global.roomInfoModel.getRoomOnlineNum(Global.config.playModel.ERRENQUICK) || Global.utils.randomInt(4e3, 5e3) + "人";
            },
            showHadDiamond: function () {
                var e = Global.userProfile.getHadDiamondNum();
                console.log("showHadDiamond num", e), e && (this.labDiamond.string = e);
            },
            checkForUpdate: function () {
                cc.sys.platform == cc.sys.WECHAT_GAME && Global.SDK.checkForUpdate();
            },
            setMyUserProfile: function () {
                var e = Global.userProfile;
                if (e) {
                    if (console.log("setMyUserProfile :", e.getUserPic(), e.getUserName()), this.spHead) {
                        e.setMyHeadSpf(this.spHead), this.spHead.node.width = 70, this.spHead.node.height = 70;
                    }
                    this.labNick && (this.labNick.string = Global.utils.getFixString(e.getUserName(), 5));
                }
            },
            checkInviteFriActive: function () {
            },
            operateShareInfo: function (e) {
                e && console.log("operateShareInfo data:", JSON.stringify(e));
            },
            _getIsForce_ToShowSevenDays: function (e) {
                return Global.UIPopupManager.getPopupCompByUrl(e) && Global.UIPopupManager.getPopupCompByUrl(e).isForce_ShowSevenDaysPopup;
            },
            operateSevenDays_CheckIn: function (e) {
                Global.userProfile;
                if ("get" == e.action) e.todayCheckIn && !this._getIsForce_ToShowSevenDays("PopupPanel/Panel_Reward") || Global.UIPopupManager.addPopup("PopupPanel/Panel_LoginReward", function (t) {
                    t.getComponent("LoginRewardPanel").setData(e);
                }); else if ("checkin" == e.action) {
                    console.log("reward checkin", e);
                    var t = e.checkInDays - 1, n = 1 == e.double, o = e.daysRewards[t].desc,
                        i = o.substring(0, o.length - 2), a = o.substring(o.length - 2, o.length), r = {
                            reward: n ? 2 * parseInt(i) : parseInt(i),
                            name: a,
                            type: "sevendays"
                        };
                    Global.UIPopupManager.addPopup("PopupPanel/Panel_shareGroup_Reward", function (e) {
                        e.getComponent("shareGroup_RewardPanel").setData(r), Global.spriteAtlas.setSpriteFrame(e.getComponent("shareGroup_RewardPanel").rewardSp, "Texture/Rewards", "WP_3");
                    });
                }
            },
            onDestroy: function () {
                Global.notificationCenter.offAll(this), tywx.NotificationCenter.ignoreScope(this);
                var e = tywx.AdManager.getAdNodeList();
                if (e.length) for (var t = 0; t < e.length; t++) e[t].hideAdNode();
                e.splice(0, e.length);
            },
            update: function (e) {
                var t = Global.userProfile, n = Global.tableModel.getPlayerModel(Global.config.SEAT_DOWN), o = void 0,
                    i = void 0;
                if (this.labCoin && (o = this.labCoin.node.parent), this.labQuan && (i = this.labQuan.node.parent),
                o && (o.active = !0, t && t.getUserProfile())) {
                    var a = t.getUserProfile().chip;
                    Global.tableModel.getIsGameStart() && n && n.getTableCoin() && (a = n.getTableCoin()),
                        this.labCoin.string = Global.utils.exchangeToWan(a || 0);
                }
                if (i && (i.active = !0, t && t.getUserProfile())) {
                    var r = t.getHadYuanBaoNum();
                    this.labQuan.string = r || 0;
                }
            },
            updateRooms: function (e) {
                var t = this, n = function (e) {
                    Global.spriteAtlas.getGameAtlasIsLoadOk() ? (Global.roomInfoModel.setPlayModel(e),
                        t.enterRoom()) : t._loadCallBack = function () {
                        Global.roomInfoModel.setPlayModel(e), t.enterRoom();
                    };
                }.bind(this);
                1 == Global.roomInfoModel.hasXueLiuRooms() && this._isClickEnterRoom[Global.config.playModel.XUELIU] ? n(Global.config.playModel.XUELIU) : 1 == Global.roomInfoModel.hasXueZhanRooms() && this._isClickEnterRoom[Global.config.playModel.XUEZHAN] ? n(Global.config.playModel.XUEZHAN) : 1 == Global.roomInfoModel.hasErrenRooms() && this._isClickEnterRoom[Global.config.playModel.ERREN] ? n(Global.config.playModel.ERREN) : 1 == Global.roomInfoModel.hasErrenQuickRooms() && this._isClickEnterRoom[Global.config.playModel.ERRENQUICK] && n(Global.config.playModel.ERRENQUICK);
                var o = e.play_mode;
                o == Global.config.playModel.XUEZHAN ? this.xueZhanNum.string = Global.roomInfoModel.getRoomOnlineNum(Global.config.playModel.XUEZHAN) + "人" : o == Global.config.playModel.XUELIU ? this.xueLiuNum.string = Global.roomInfoModel.getRoomOnlineNum(Global.config.playModel.XUELIU) + "人" : o == Global.config.playModel.ERREN ? this.errenNum.string = Global.roomInfoModel.getRoomOnlineNum(Global.config.playModel.ERREN) + "人" : o == Global.config.playModel.ERRENQUICK && (this.jiSuNum.string = Global.roomInfoModel.getRoomOnlineNum(Global.config.playModel.ERRENQUICK) + "人");
            },
            enterRoom: function () {
                console.log("enterRoom "), SceneHelper.loadScene("selectScene"), tywx.NotificationCenter.trigger(tywx.EventType.MSG_SHOW_GAME_INTERACTION, !1),
                    this._isClickEnterRoom = {};
            },
            onSelectXueZhan: function () {
                var e = this;
                if (o.playEffect("select"), Global.utils.showWaitting(), this._isClickEnterRoom[Global.config.playModel.XUEZHAN] = 1,
                1 == Global.roomInfoModel.hasXueZhanRooms()) {
                    var t = function () {
                        Global.roomInfoModel.setPlayModel(Global.config.playModel.XUEZHAN), e.enterRoom();
                    };
                    Global.spriteAtlas.getGameAtlasIsLoadOk() ? t() : e._loadCallBack = t;
                } else {
                    var n = Global.config.playModel.XUEZHAN, i = Global.config.GAMEID_NORMAL;
                    Global.msgHandler.requestRoomList(n, i);
                }
            },
            onSelectXueLiu: function () {
                var e = this;
                if (o.playEffect("select"), Global.utils.showWaitting(), this._isClickEnterRoom[Global.config.playModel.XUELIU] = 1,
                1 == Global.roomInfoModel.hasXueLiuRooms()) {
                    var t = function () {
                        Global.roomInfoModel.setPlayModel(Global.config.playModel.XUELIU), e.enterRoom();
                    };
                    Global.spriteAtlas.getGameAtlasIsLoadOk() ? t() : e._loadCallBack = t;
                } else {
                    var n = Global.config.playModel.XUELIU, i = Global.config.GAMEID_NORMAL;
                    Global.msgHandler.requestRoomList(n, i);
                }
            },
            onSelectErren: function () {
                var e = this;
                if (o.playEffect("select"), Global.utils.showWaitting(), this._isClickEnterRoom[Global.config.playModel.ERREN] = 1,
                1 == Global.roomInfoModel.hasErrenRooms()) {
                    var t = function () {
                        Global.roomInfoModel.setPlayModel(Global.config.playModel.ERREN), e.enterRoom();
                    };
                    Global.spriteAtlas.getGameAtlasIsLoadOk() ? t() : e._loadCallBack = t;
                } else {
                    var n = Global.config.playModel.ERREN, i = Global.config.GAMEID_ERREN;
                    Global.msgHandler.requestRoomList(n, i);
                }
            },
            onSelectErrenQuick: function () {
                var e = this;
                if (o.playEffect("select"), Global.utils.showWaitting(), this._isClickEnterRoom[Global.config.playModel.ERRENQUICK] = 1,
                1 == Global.roomInfoModel.hasErrenQuickRooms()) {
                    var t = function () {
                        Global.roomInfoModel.setPlayModel(Global.config.playModel.ERRENQUICK), e.enterRoom();
                    };
                    Global.spriteAtlas.getGameAtlasIsLoadOk() ? t() : e._loadCallBack = t;
                } else {
                    var n = Global.config.playModel.ERRENQUICK, i = Global.config.GAMEID_ERRENQUICK;
                    Global.msgHandler.requestRoomList(n, i);
                }
            },
            onSelectCreateRoom: function () {
                console.log(" onSelectCreateRoom "), o.playEffect("select"), Global.UIPopupManager.addPopup("PopupPanel/createrRoom");
            },
            onSelectJoinRoom: function () {
                console.log(" onSelectJoinRoom "), o.playEffect("select"), Global.UIPopupManager.addPopup("PopupPanel/joinRoom");
            },
            onSettingBtn: function () {
                o.playEffect("select"), Global.UIPopupManager.addPopup("PopupPanel/Panel_Setting");
            },
            onRewardBtn: function () {
                o.playEffect("select"), Global.utils.showWaitting(), Global.UIPopupManager.addPopup("PopupPanel/Panel_Reward");
            },
            onActivityBtn: function () {
                o.playEffect("select"), Global.UIPopupManager.addPopup("PopupPanel/Panel_Activity");
            },
            onTaskBtn: function () {
                console.log(" onTaskBtn "), o.playEffect("select"), Global.utils.showWaitting(),
                    Global.UIPopupManager.addPopup("PopupPanel/Panel_Task");
            },
            onZhanjiBtn: function () {
                console.log(" onZhanjiBtn "), o.playEffect("select");
                var e = {
                    text: "敬请期待...",
                    confirmText: "确定",
                    confirmSp: Global.spriteAtlas.getOKSpf(),
                    cancelText: "取消",
                    cancelSp: Global.spriteAtlas.getCancelSpf(),
                    confirmCallback: function () {
                        o.playEffect("select"), console.log(" confirmCallback ");
                    }
                };
                Global.UIPopupManager.alert(e);
            },
            onDiamondBtn: function () {
                o.playEffect("select"), tywx.UserInfo.isiPhone ? Global.utils.onBuyClickForIOS() : (Global.utils.showWaitting(),
                    Global.UIPopupManager.addPopup("PopupPanel/Panel_Shop", function (e) {
                        e.getComponent("ShopPanel").selectType("diamond");
                    }));
            },
            onGoldCoinBtn: function () {
                o.playEffect("select"), tywx.UserInfo.isiPhone ? Global.utils.onBuyClickForIOS() : (Global.utils.showWaitting(),
                    Global.UIPopupManager.addPopup("PopupPanel/Panel_Shop", function (e) {
                        e.getComponent("ShopPanel").selectType("coin");
                    }));
            },
            onBtnShop: function () {
                o.playEffect("select"), tywx.UserInfo.isiPhone ? Global.utils.onBuyClickForIOS() : (Global.utils.showWaitting(),
                    Global.UIPopupManager.addPopup("PopupPanel/Panel_Shop", function (e) {
                        e.getComponent("ShopPanel").selectType("coin");
                    }));
            },
            onShareBtn: function (e) {
                console.log("onShareBtn"), o.playEffect("select");
                var t = (Global.configCdn.getActivityAndTaskConf() || Global.configCdn.getDefaultConfig("activityAndTask")).videotask,
                    n = this;
                if (Global.config.AlreadyWatchVideoNums >= 4) Global.utils.showNodeCommon("今天的视频金币已经领完了，还有分享金币可以领哦，试一下吧！", 2),
                    this.onInviteFriBtn(); else {
                    var i = t[0].taskId, a = t[0].kindId;
                    Global.utils.showViewAd(Global.config.adTaskUnitId, function () {
                        n.scheduleOnce(function () {
                            var e = {
                                taskId: i,
                                kindId: a,
                                type: 0
                            };
                            Global.msgHandler.requestGetVideoReward(e);
                        }, .1);
                    }, function () {
                        Global.utils.showNodeCommon("您在播放中途退出，无法领取游戏奖励", 3);
                    });
                }
            },
            onInviteFriBtn: function (e) {
                console.log("onInviteFriBtn"), o.playEffect("select"), Global.UIPopupManager.addPopup("PopupPanel/Panel_InviteFri", function (e) {
                });
            },
            onBtnWithdrawDeposit: function () {
                console.log("onBtnWithdrawDeposit"), o.playEffect("select"), Global.UIPopupManager.addPopup("PopupPanel/Panel_expressive_detail", function (e) {
                    e.getComponent("ExpressiveDetailPanel").bindData();
                });
            },
            onExpressiveBtn: function (e) {
                console.log("onExpressiveBtn"), o.playEffect("select"), Global.UIPopupManager.addPopup("PopupPanel/Panel_expressive_detail");
            },
            onQRcodeBtn: function () {
                console.log("onQRcodeBtn"), this.nodeQRcode.active = !0, tywx.NotificationCenter.trigger(tywx.EventType.MSG_SHOW_GAME_INTERACTION, !1);
            },
            onQRcodeMask: function () {
                console.log("onQRcodeMask"), o.playEffect("select"), this.nodeQRcode.active = !1,
                    tywx.NotificationCenter.trigger(tywx.EventType.MSG_SHOW_GAME_INTERACTION, !0);
            },
            onAttentionOfficial: function () {
                o.playEffect("select"), Global.UIPopupManager.addPopup("PopupPanel/attentionOfficialAccounts", function (e) {
                });
            },
            showNewHelpMsg: function (e) {
                e.info || (this.newMsgTip.active = !0);
            },
            onShowBigAdBtn: function () {
                if (cc.sys.platform == cc.sys.WECHAT_GAME) {
                    var e = "https://richqn.nalrer.cn/dizhu/other_game_ico/fish/ad_big_fish.jpg";
                    wx.previewImage({
                        current: e,
                        urls: [e],
                        success: function (e) {
                            console.log("预览图片成功！");
                        },
                        fail: function (e) {
                            console.log("预览图片失败！");
                        }
                    });
                }
            },
            onGuidBtn: function () {
                Global.UIPopupManager.addPopup("PopupPanel/collectDeskTop", function (e) {
                }), cc.sys.localStorage.setItem("count", 1),
                    this.nodeBtnGuid.active = !1;
            },
            onShowFirstRecharge: function () {
                console.log("onShowFirstRecharge");
                var e = !1, t = Global.configCdn.getUISwitchConf();
                e = (!t || 0 != t.firstChargeIcon) && !Global.GetIsFirstRecharge(), console.log("onShowFirstRecharge: isShow= " + e),
                    this.nodeFirstRecharge.active = e;
            },
            onClickFistRecharge: function () {
                console.log("onClickFistRecharge"), o.playEffect("select"), Global.UIPopupManager.addPopup("PopupPanel/Panel_recharge", function (e) {
                    e.getComponent("RechargePanel").bindData(null, 3);
                });
            },
            onClickAdCrossList: function () {
                o.playEffect("select"), console.log(" onClickAdCrossList "), tywx.NotificationCenter.trigger(tywx.EventType.MSG_SHOW_ADCROSSLIST_POPUP);
            },
            loadGameResourceSuccess: function () {
                this._loadCallBack && this._loadCallBack();
            },
            onBtnChestClick: function () {
                console.log("onBtnChestClick"), o.playEffect("select"), Global.UIPopupManager.addPopup("PopupPanel/Panel_Advertisement");
            }
        })
    }